package com.example.a02back.entity;

import com.baomidou.mybatisplus.annotation.*;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author SimpChaos
 * @since 2022-07-02
 */

@TableName("comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 对于活动的评论ID
     */
    @TableId(value = "commentId", type = IdType.AUTO)
    private Long commentId;

    /**
     * 评论所在的活动主题ID
     */
    @TableField(value = "topicId")
    private Long topicId;

    /**
     * 发出评论的用户UID
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private LocalDateTime createTime;



    @Override
    public String toString() {
        return "Comment{" +
            "commentId=" + commentId +
            ", topicId=" + topicId +
            ", uid=" + uid +
            ", content=" + content +
            ", createTime=" + createTime +
        "}";
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Long getTopicId() {
        return topicId;
    }

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
